package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 投资策略历史对象 inv_strategy_record
 * 
 * @author ruoyi
 * @date 2022-01-12
 */
public class InvStrategyRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 策略ID */
    @Excel(name = "策略ID")
    private Long strategyId;

    /** 记录净值的日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录净值的日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date worthDate;

    /** 当天净值 */
    @Excel(name = "当天净值")
    private BigDecimal worth;

    /** 策略当天涨幅 */
    @Excel(name = "策略当天涨幅")
    private BigDecimal increase;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStrategyId(Long strategyId) 
    {
        this.strategyId = strategyId;
    }

    public Long getStrategyId() 
    {
        return strategyId;
    }
    public void setWorthDate(Date worthDate) 
    {
        this.worthDate = worthDate;
    }

    public Date getWorthDate() 
    {
        return worthDate;
    }
    public void setWorth(BigDecimal worth) 
    {
        this.worth = worth;
    }

    public BigDecimal getWorth() 
    {
        return worth;
    }
    public void setIncrease(BigDecimal increase) 
    {
        this.increase = increase;
    }

    public BigDecimal getIncrease() 
    {
        return increase;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("strategyId", getStrategyId())
            .append("worthDate", getWorthDate())
            .append("worth", getWorth())
            .append("increase", getIncrease())
            .toString();
    }
}
